﻿// -----------------------------------------------------------------------
// <copyright file="ValueOutOfRangeException.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Ex03.GarageLogic
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    public class ValueOutOfRangeException : Exception
    {
        private readonly float r_MaxValue;
        private readonly float r_MinValue;

        public ValueOutOfRangeException(string i_Message, float i_MinValue, float i_MaxValue)
            : base(string.Format("Original message: {1}.{0}Minimum Value: {2}.{0}Maximum Value {3}.", System.Environment.NewLine, i_Message, i_MinValue, i_MaxValue))
        {
            r_MaxValue = i_MaxValue;
            r_MinValue = i_MinValue;
        }
    }
}
